﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace Mbs.Net.Tcp
{
    [Serializable]
    public class HostInfo
    {
        public IPEndPoint EndPoint { get;  set; }
        public byte[] PacketSeparateFlag { get; set; }
        public byte[] HeartPacket { get; set; }
        public int HeartInterval { get; set; }
        public int BufferSize { get; set; }
        public int SendTimeout { get; set; }
        public int ReceiveTimeout { get; set; }
    }

    [Serializable]
    public class ServiceHostInfo:HostInfo
    {
        public int MaxConnections { get; set; }
        public int ConnectionBacklog { get; set; }
        public int MaxPendingConnections { get; set; }
    }
}
